
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<%@taglib uri="/WEB-INF/tld/components.tld" prefix="up"%>
<%@taglib uri="http://java.sun.com/jstl/fmt" prefix="fmt"%>
<%@ taglib prefix="pp" uri="http://java.sun.com/jsp/jstl/fmt"%>
<jsp:useBean id="agora" class="java.util.Date" />
<html>
<jsp:include page="/Autorizacao.jsp" flush="false" />
<jsp:include page="header.jsp">
	<jsp:param name="function" value="Cadastro de Lugar" />
</jsp:include>
<jsp:useBean id="cadLugBean" scope="request"
	class="edu.up.beans.LugarBean" />
<body>
<!-- begin #container -->
<div id="container"><!-- begin #header -->
<div id="header">
<div class="headerBackground"></div>
<div id="navcontainer">
<ul id="navlist">
	<li><a href="index.jsp"><up:label property="menu.home" /></a></li>
	<li><a href="Sonhos.jsp"><up:label property="menu.sonhos" /></a></li>
	<li><a
		href="<%=request.getContextPath()%>/RelatoriosServlet?acao=RelDepoimentos"><up:label
		property="menu.depoimentos" /></a></li>
	<li id="active"><a href="Login.jsp" id="current"><up:label
		property="menu.login" /></a></li>
	<li><a href="Sobre.jsp"><up:label property="menu.sobre" /></a></li>
	<li><up:countryOption country="Brasil" locale="pt_BR" /></li>
	<li><up:countryOption country="USA" locale="en_US" /></li>
	<li><up:countryOption country="Espanha" locale="es_ES" /></li>
	<li><a
		href="<%=request.getContextPath()%>/ControleServlet?funcao=Start"><img
		src="images/logout.png" alt="Logout" /></a></li>
</ul>
</div>
</div>
<!-- end #header --> <!-- begin #mainContent -->
<div id="mainContent" align="center">
<div class="t">
<div class="b">
<div class="l">
<div class="r">
<div class="bl">
<div class="br">
<div class="tl">
<div class="tr">
<form id="frmCadCliente" name="frmCadCliente" method="post" action="">
<up:label property="texto.l79" />
<up:label property="texto.l80" />
<br />
<up:label property="texto.l81" />
<p></p>
<table border="0">
	<tr align="left">
		<td>ID*</td>
		<!-- <td><input type="text" name="txtId" size="30" maxlength="30" /></td>  -->
		<td><INPUT type='text' name='id' size='30' maxlength="30"
			value='<jsp:getProperty property="id" name="cadLugBean"/>'></td>
	</tr>
	<%
		String tipo = cadLugBean.getTipo();
		if (tipo == null) {
			tipo = "";
		}
	%>
	<tr align="left">
		<up:label property="texto.l82" />

		<!-- <td><input type="text" name="txtTipo" size="30" maxlength="30"/></td>  -->
		<td><select id="tipo" name="tipo">
			<option value="none" <% if(tipo.equals("none")) {%> SELECTED <% } %>>Selecione</option>
			<option value="Viagem" <% if(tipo.equals("none")) {%> SELECTED
				<% } %>>Viagem</option>
			<option value="Jantar" <% if(tipo.equals("none")) {%> SELECTED
				<% } %>>Jantar</option>
			<option value="Aventure" <% if(tipo.equals("none")) {%> SELECTED
				<% } %>>Aventura</option>
			<option value="Automobilismo" <% if(tipo.equals("none")) {%> SELECTED
				<% } %>>Automobilismo</option>
			<option value="Outros" <% if(tipo.equals("none")) {%> SELECTED
				<% } %>>Outros</option>
		</select></td>
	</tr>
	<tr align="left">
		<up:label property="texto.l83" />

		<!-- <td><input type="text" name="txtDescricao" size="20" maxlength="20"/></td> -->
		<td><input type="text" name='descricao' size='20' maxlength="20"
			value='<jsp:getProperty property="descricao" name="cadLugBean"/>'></td>
	</tr>
	<tr align="left">
		<up:label property="texto.l84" />

		<!-- td><input type="text" name="txtValor" size="20" maxlength="20"/></td> -->
		<td><input type="text" name='valor' size='20' maxlength="20"
			value='<jsp:getProperty property="valor" name="cadLugBean"/>'></td>
	</tr>
	<tr align="left">
		<up:label property="texto.l85" />

		<!-- <td><input type="text" name="txtLocalidade" size="20" maxlength="20"/></td> -->
		<td><input type="text" name='localidade' size='20' maxlength="20"
			value='<jsp:getProperty property="localidade" name="cadLugBean"/>'></td>
	</tr>
	<tr align="left">
		<up:label property="texto.l86" />

		<!-- <td><input type="text" name="txtTemporada" size="20" maxlength="20"/></td> -->
		<td><input type="text" name="temporada" size="20" maxlength="20"
			value='<jsp:getProperty property="temporada" name="cadLugBean"/>'></td>
	</tr>
	<tr align="left">
		<up:label property="texto.l87" />

		<!-- td><input type="text" name="txtCEP" size="11" maxlength="9"/></td> -->
		<td><input type="text" name='contato' size='11' maxlength="9"
			value='<jsp:getProperty property="contato" name="cadLugBean"/>'></td>
	</tr>
	<tr align="left">
		<td align="right"><input type="button" name="btnSubmit"
			value="<up:label property="botao.enviar" />"
			onClick="javascript:validar('Gravar');" /></td>
		<td align="right"><input type="reset" name="btnReset"
			value="<up:label property="botao.limpar" />" /></td>
	</tr>
</table>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
			function validar(paramAcao)
			{
			
				document.frmCadCliente.action="<%=request.getContextPath()%>/LugarServlet?acao="+paramAcao;
				document.frmCadCliente.submit();
			
			}
			</script> <!-- begin #footer -->
<div id="footer"><br />
<br />

&nbsp; &nbsp; <strong><pp:formatDate value="${agora}"
	dateStyle="full" /></strong> &nbsp; &nbsp; || &nbsp; &nbsp; <up:label
	property="rodape.texto" /></div>
<!-- end #footer --></div>
<!-- end #container -->
</body>
</html>
